using System;
using System.Collections.Generic;
using System.Text;

 

namespace Open.Data.Persistence.Testing
{
    public class Address: Table
    {
        private int _Id;
        private string _Line1;
        private string _Line2;
        public Country _country;

        public Address()
        {
            Line1 = string.Empty;
            Line2 = string.Empty;
        }

        [PrimaryKey]
        public int Id
        {
            get
            {
                return _Id;
            }
            set
            {
                _Id = value;
            }
        }

        [Column]
        public string Line1
        {
            get 
            { 
                return _Line1; 
            }
            set 
            { 
                _Line1 = value; 
            }
        }

        [Column]
        public string Line2
        {
            get 
            { 
                return _Line2; 
            }
            set 
            { 
                _Line2 = value; 
            }
        }

        [Column]
        public Country Country
        {
            get
            {
                return _country;
            }
            set
            {
                _country = value;
            }
        }
    }
}
